ESP8266 Home Sensor module is a wireless ESP2866 (ESP-07) based microcontroller development board which includes a DHT22 temperature and humidity sensor, an LDR light level sensor and a PIR motion detector.
Its array of sensors makes it great for monitoring the environmental conditions and occupancy of a room wirelessly. Being ESP8266 based it is compatible with the Arduino IDE (via board manager) and we have provided a simple library with example sketches to interface to the on-board sensors making developing your own sketches as straightforward as possible.
Alternatively the module is compatible with existing Arduino/ESP/MQTT libraries and also off-the-shelf firmware such as Tasmota or ESPHome allowing it to be integrated with home automation software like Home Assistant.
Product code: HCDVBD0045 Supply voltage: 5V (or 3.3V via reg bypass mod - see below) via + & - solder pads or 5V & GND serial header pins Current consumption (deep sleep): 2mA (inc module LED) Current consumption (modem sleep): 21.5mA Current consumption (connected to WiFi network): 215mA peek / ~72mA idle Interfaces: + & - power solder pads, serial programming interface (5V tolerant), Program mode button ESP8266 type: ESP-07 ESP8266 clock: 80MHz ESP8266 Flash: 8Mbit ESP8266 Transmit power: 802.11b: 16±2 dBm (11Mbps) 802.11g: 14±2 dBm (54Mbps) 802.11n: 13±2 dBm (HT20, MCS7) Temperature sensor range: -40 to 80oC Temperature sensor resolution: 0.1oC Humidity sensor range: 0 to 10 %RH Humidity sensor resolution: 0.1 %RH LDR sensor range: 0V = 100%, 1V = Dark PIR Trigger on time: ~4 seconds PIR Sensor angle: 100 degree cone Sensor range: ~3 to 5 metres Dimensions (LxWxH): 68.8mm x 22.4mm x 18mm
Arduino IDE setup guide:
The module is compatible with the Arduino IDE via the board manager feature. The latest version of the Arduino IDE can be downloaded from the official Arduino website here:
Once installed you will need to add board support for ESP8266 devices. To do this just follow steps 1 & 2 in our blog post here:
Arduino IDE board settings:
Board: Generic ESP8266 Module
Port: The COM port of your USB interface module.
Crystal Frequency: 26MHz
Flash Frequency: 40MHz
Flash mode: DIO
Reset Method: dtr
Upload Speed: 115200
Flash Size: 1MB (FS64KB OTA:~470KB)
CPU Frequency: 80MHz
You can leave any additional settings to their defaults.
Programming the ESP Home Sensor
To interface this module to your PC you will need an additional USB to serial interface adapter. The serial interface is compatible with both 3.3V and 5V TTL adapters:
https://hobbycomponents.com/usb-interfa ... al-adaptor
https://hobbycomponents.com/usb-interfa ... rt-adapter
https://hobbycomponents.com/usb-interfa ... le-adaptor
Connect the USB to serial adapter to the module's serial interface as shown above.
To put the module into programming mode hold down the program button (see image above) whilst plugging the USB adapter into your computer.
After uploading your sketch the module can be put back into run mode by removing and re-inserting the USB adapter or by cycling the module's power.
Accurate temperature readings.
When the ESP07 modules WiFi is enabled its PA and LNA consume a relatively large amount of current which in turn causes the ESP07 to generate heat. This will in turn affect the temperature sensed by the DHT22.
To help mitigate any temperature errors it is recommended that you turn off the ESP’s WiFI when not needed. This can be achieved by putting the module into either modem sleep, or deep sleep mode using the command WiFi.mode(WIFI_OFF) or ESP.deepSleep() respectively.
3D Printer Case:
For customers with a 3D printer we have uploaded a custom case to thingyverse which can be printed out on a standard 3D printer. You can find the STL files here:
I want to use the ESPHome home firmware, what should I select for the device type?
If using with ESPhome use the ESP8266 platform and for board type select ESP07.
ESP Home Sensor Library: viewtopic.php?f=58&t=3059
Schematic: https://hobbycomponents.com/downloads/E ... ematic.pdf
Libraries, example code, and diagrams are provided as an additional free service by Hobby Components and are not sold as part of this product. We do no provide any guarantees or warranties as to their accuracy or fitness for purpose.
Descriptions and diagrams on this page are copyright Hobby Components Ltd and may not be reproduced without permission.