i have been trying to resolve the issue , type error TypeError: ‘>=’ not supported between instances of ‘NoneType’ and ‘int’ in the project sending mesage through telegram using bot ,here is my code
The value returned by ‘get_sensor…’ is not an integer. It is returning with a null value.
You can test the code on your side first, for evaluation. And then, if required, nest the condition under another ‘if condition’ and check if the sensor_value == None.
For testing, remove step 2 and step 3, and check the value of sensor_value.
If you are not able to resolve with above instructions, share the output of the code as well. So that we can look into the issue in depth.