Use pyautogui, matplotlib and numpy library of python to control the mouse
Arduino sends the data to the PC. Reads the data coming using PySerial library of Python.
And plots it in real-time using matplotlib and numpy library of python.
Using pyautogui library of python we performs the desired action.
Arduino sends ‘right’, ‘left’,’up’ etc commands to pc.