esp8266 simple codes for esp8266 The goal was to use only ESP8266 to detect. This doesn't require any other hardware.