Using a LDR Light Sensor with ESP8266 NodeMCU V3 on Home Assistant

Connect LDR Light Sensor to ESP8266 NodeMCU with ADC Pin (Analog to Digital Converter)

Configuration with ESPHome on Home Assistant

esphome:
  name: esp8266_nodemcu_v3
  platform: ESP8266
  board: nodemcuv2

# Wifi
wifi:
  ssid: "your_ssid"
  password: "your_password"
  fast_connect: true
  manual_ip:
    static_ip: 192.168.1.33
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.1

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

# LDR Light Sensor
sensor:
  - platform: adc
    pin: A0
    name: "ESP8266 NodeMCU V3 Brightness"
    update_interval: 10s
    filters:
      - multiply: 3.3