IoT esp2 soil npk sensor

Hello I badly need help, I need a code for esp32 to measure npk levels and a code for thingspeak cuz im trying the codes ive got but they dont show any value on the serial monitor and can I also know the proper circuit diagram (our prototype consist of esp32, rs485 transceiver module and a NPK sensor)

Without your code it is hard to tell just what you need. I have my NPK sensor working with an ESP32 and an SPI LCD display and an SD card reader/writer.

Things to look for are the wiring, the RS485 converter, and the coding itself.

The common RS485 that some tutorials use is a MAX485. You may have better luck using a MAX3485 as the MAX485 is reported to have voltage stability issues.

I'm not an expert by any means but if you post your code I can look through it.

@mewiztired1 as requested, post the code you are using.

Also tell us which RS485 module you are using. As already mentioned, you should be using a MAX3485 - or similar - 3.3V RS485 transceiver chip.

Please provide a diagram showing how you have connected the ESP32, RS485 module, NPK sensor and a power source together. Hand drawn and photographed is ok.

DO you have the user manual for your NPK sensor?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.