If we want to configure and use an ESP8266-based multisensor in the fastest possible way, it is a good idea to use ESPEasy! If you have never heard of it, you may miss the Smart Water Controller that can be instructed.
Anyway, ESPEasy is a Swiss Army Knife firmware that has many controls and plugins in it that can be easily configured with just a few clicks of anyone who has already seen a router's menu. Firmware can be uploaded after connecting to a USB port, my personal favorite program for uploading is nodemcu pyflasher ( multiplatform ) but the downloadable ESPEasy also contains one ( Windows only ) ESPEasy Flasher application.
After the first upload and restart, a new AP named " ESP_Easy_0 " will be displayed, the default password is configesp .
(Learn more about this) Then you can set your own WiFi AP name and password through a browser that visits 1
Don't forget to disable serial port use on Tools-> Advanced Menu and enable Control.
The rules are run locally, the semantics are not that complicated. (The rules I used in this project are in rules1.txt)
There is much more possibility, the WS2812 LED can be controlled by the NeoPixel, [led nr][red 0-255][green 0-255] [blue 0-255] command and the buzzer can be used with either single tone or rtttl (Nokia Ringtone Player) commands.