pccminister wrote: ↑
Fri Mar 13, 2020 10:00 pm
but you know that there are some tiny fixes about your code that should be applied!
there is a new Q:
why your code ran OK and my code needed me to repeat my Loop?
try-except does not solve your problem - error on first read, but allow to ignore any read error and continue code exection.
Check something like this - http://www.blog.pythonlibrary.org/2012/ ... -handling/
I could only guess why you have error on first read:
1) check you dont do anything with this pin in boot.py
2) try to add time.sleep(2) right before "while True" line.
3) change sensor
4) check wires and resistors - http://cactus.io/hookups/sensors/temper ... ity-sensor
5) use osciloscope or data logger to see whats going on the data wire