When i am reading value from soil moisture sensor it works fine but when i connect it with MQTT it gives me constant 4095 value from sensor .
- I have tried to publish constant value it works fine.
- I have tried to publish value of RTC for troubleshooting. It gives me 4095.0021, 21 as time.
- Tried connecting Vcc to 3.3 and 5v still output remains same.
I have used ESP32 development board.
Please go through this and let me know where i am wrong.
MQTT_Publisher1.ino (3.1 KB)