I am trying to receive the data from Arduino in Python.
The sensor is MPU6050. A part of the Arduino code shown correctly on the serial monitor is:
// Temp float temp = mpu.readTemperature(); Serial.print(" Temp = "); Serial.print(temp); Serial.println(" *C");
My problem is that I am trying to receive the data with this documentation: Python Language - Read from serial port | python Tutorial
import serial ser = serial.Serial("/dev/ttyUSB0", 115200, timeout=0) data = ser.readline() print(data)
But, the only thing I receive is:
I do not know what I’m doing wrong.