The reason that your sensors work without Blynk, but won’t work with Blynk is that you’ve chosen analog pins that are connected to the ESP33’s ADC2 analog to digital converter.
The ESP32 architecture doesn’t allow ADC2 to be used at the same time as WiFi.
You should choose pins that are connected to ADC1 instead…
- ADC1_CH0 (GPIO 36)
- ADC1_CH1 (GPIO 37)
- ADC1_CH2 (GPIO 38)
- ADC1_CH3 (GPIO 39)
- ADC1_CH4 (GPIO 32)
- ADC1_CH5 (GPIO 33)
- ADC1_CH6 (GPIO 34)
- ADC1_CH7 (GPIO 35)
Read this for more info…
But, your void loop isn’t compatible with Blynk either. Read this for info about how to use BlynkTimer instead of a blocking delay()
, and declutter your loop…
I found this part of your post very confusing…
Without more information about this error, and clarification about whether is a compilation error or an execution error, we can’t help with this issue.
Pete.