Tell us about yourself!
Success! Using the Node MCU (ESP8266-12E), so it was important to note that you literally have to use D7 and D2 when you define the pins (not just 7 and 2 like your normal Arduino code).
Circuit Triggers Internet Action
Combining Inputs and Outputs
Gather Your (Internet Of) Things
Internet of Things Class
Ultimate Raspberry Pi Home Server
How to use Google Sites to control a Arduino!