For ESP-01 can I use TX or RX to interface a DHT22 for my simple NTP Desk Clock project?
Posted: 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.
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.