HiLetgo ESP32 *with 38 pins* which board to use?

Hi Everyone

I am using this board:

Curiosly it has 38 pins and I can’t get it working when I try to collect temperature using a DHT11 !!!

I was able to write the firmaware, I can ping and see this board using wifi and HA ESPHome and I am able to flash things using OTA/ESPHome but I can’t get DHT11 to work.

I believe the problem could be:

  • The “board” type I am using:

esphome:
name: ip227
platform: esp32
board: esp32dev

  • The pin I am using

sensor:

  • platform: dht
    pin: 21
    temperature:
    name: “ip227_temp”
    humidity:
    name: “ip227_humidity”
    model: DHT11

In my board, I read P21 but I am receiving this error:
[14:56:38][W][dht:162]: Requesting data from DHT failed!
[14:56:38][W][dht:060]: Invalid readings! Please check your wiring (pull-up resistor, pin number).

Do you have some idea or suggestion?

Please post your code properly quoted.

Can you switch a led or a relay with pin21?

Hi @nickrout

I will try with this led. Good idea.

My apologies ref the code. Here we go:

esphome:
  name: tempert
  platform: esp32
  board: nodemcu-32s

wifi:
  manual_ip:
    static_ip: 192.168.9.999
    gateway: 192.168.9.1
    subnet: 255.255.255.0
  ssid: "999999999999"
  password: "9999999"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Ip227 Fallback Hotspot"
    password: "99999999"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "999999"

ota:
  password: "99999"
  
sensor:
  - platform: dht
    pin: 21
    temperature:
       name: "ip277"
    model: DHT11