Open GabrieleAnsaldo opened 3 years ago
Have you tried to swap """--- Moisture Sensor ---"""
with any other part such as """--- Soil Temperature Sensor ---"""
?
If code gets stuck again at the """--- Moisture Sensor ---"""
then something is wrong there.
Otherwise obviously the program assumes it's done after the """--- Light Sensor ---"""
In that case try to send to Blynk all data at the end of the program and first finish reading the sensors?
Gabriele, I can propose several ways to debug the issue 1) If you not familiar with blynklib an this you first project - you can try to use as base and adopt to your sensor this esp32 example https://github.com/blynkkk/lib-python/blob/master/examples/esp32/03_temperature_humidity_dht22.py 2) In your example try to remove last sleep(5) . Also for future I recommend to use not time sleep but machine.sleep https://docs.micropython.org/en/v1.10/library/machine.html?highlight=sleep#machine.sleep Additionally you can add more print messages to your code and just share with me log. This will help us to identify exact place of failure.
Hello,
I am trying to connect a bunch of sensors to my ESP32. I want to connect it to the Blynk app in order to get some data on my phone.
I am currently coding on python, however, I have an issue.
The code seems to always stop after it reads the light sensor. Basically, I only get the data from the light sensor and it loops from there.
Any clue what is wrong with the code?