i am reading values serially from arduino but getting this error can anyone help plz
unorderable str()>int()
In the try block we have to keep sensor_value=int(data[‘value’]) so that it converts the sensor reading to integer data type for comparing the temperature range. So convert into integer data by placing int and try executing.
Hope it gets solved.
1 Like
It should be sensor_value = int data[‘value’]