For ESP-01 can I use TX or RX to interface a DHT22 for my simple NTP Desk Clock project?

rifat.projects
Posts: 6
Joined: Sat Nov 01, 2025 10:12 am

For ESP-01 can I use TX or RX to interface a DHT22 for my simple NTP Desk Clock project?

Postby rifat.projects » Thu Nov 27, 2025 11:34 am

Hi everyone,

I’m currently working on a cubical desk NTP clock with ESP-01, and the main functionality is already working. Now I want to extend the project by adding a DHT sensor to measure humidity and temperature.

Right now, I’m using GPIO2 for both the SDA line of the display and the DHT signal pin, which is causing issues with the display. While checking alternatives, I noticed that TX and RX correspond to GPIO1 and GPIO3.

Can I use either TX or RX as an I²C line or as the signal pin for the DHT sensor? If anyone has experience with this or suggestions for a better solution, I’d really appreciate your input.
Last edited by rifat.projects on Sat Nov 29, 2025 3:27 am, edited 1 time in total.

nopnop2002
Posts: 347
Joined: Thu Oct 03, 2019 10:52 pm
Contact:

Re: For ESP-01 can I use TX or RX to interface a DHT22 for my simple NTP Desk Clock project?

Postby nopnop2002 » Thu Nov 27, 2025 12:02 pm

This forum deals with ESP32-related topics.

ESP-01 (ESP8266)-related topics are not appropriate for this forum.

Sprite
Espressif staff
Espressif staff
Posts: 10593
Joined: Thu Nov 26, 2015 4:08 am

Re: For ESP-01 can I use TX or RX to interface a DHT22 for my simple NTP Desk Clock project?

Postby Sprite » Fri Nov 28, 2025 12:18 am

Moved to the ESP8266 subforum.

Sprite
Espressif staff
Espressif staff
Posts: 10593
Joined: Thu Nov 26, 2015 4:08 am

Re: For ESP-01 can I use TX or RX to interface a DHT22 for my simple NTP Desk Clock project?

Postby Sprite » Fri Nov 28, 2025 12:20 am

And yes, you can repurpose the TX/RX pins if you do not need them for anything else.

rifat.projects
Posts: 6
Joined: Sat Nov 01, 2025 10:12 am

Re: For ESP-01 can I use TX or RX to interface a DHT22 for my simple NTP Desk Clock project?

Postby rifat.projects » Sat Nov 29, 2025 3:28 am

Thank you!

Who is online

Users browsing this forum: No registered users and 1 guest