# Mobile Temp and Humidity Sensor with ESPHome Use with a ESP8266, e.g. a D1 mini ## Secrets Create secrets.yaml and store the wifi password: wifi_password: "XXXX" ## Hardware Sensor Pins, Front = grill 1=Vin (3.3-5V) 2=Data 3=Not used 4=GND Connect Data to D2 and via 4,7 kOhm to Vin ## Flash sudo docker run --rm --privileged -v "${PWD}":/config --device=/dev/ttyUSB0 -it ghcr.io/esphome/esphome run mobile-sensor.yaml ## HomeAssistant Add integration "ESPHome", use IP of flashed device. ## Links https://esphome.io/guides/getting_started_command_line