NODEMCU -photoresistence problem?

Scottino:
Do u mean this?

Yes. The only thing that is not clear from that picture is which pins are digital only, and which are analog or digital.

Personally, I would expect that referring to a pin as D0 would imply that it was a digital pin, not an analog pin.