Help me with 2 wire humidity sensor code

Hello,

I'm new to Arduino and currently working with an ESP8266. I'm looking to read analog data from a custom-made humidity sensor using the ESP8266 to remotely capture humidity data. Despite extensive searching, I couldn't find any relevant code for a 2-wire connection. Can anyone provide assistance or share a code snippet for this setup?

What sensor do you have and what is the communication protocol?

2-wire connection

Is it RS232, RS485, UART, I2C, or some other 2 wire interface?

It's just a single analog input not a 2 wire interface.

Use analogRead(A0) to read the voltage from the sensor.

I am sorry. i don't know about coding. Can you please explain it or provide some code?

Read this:

1 Like

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