This is a tutorial on how to connect an LDR to ESP8266 for light sensing iot project.
Link where you can buy parts:
ESP8266 NODEMCU - https://amzn.to/2DhhhlF
LDR - https://amzn.to/2CfBiIA
LDR is a very popular light sensor that is very easy to use.