Error compiling for board NodeMCU 1.0 (ESP-12E Module).

this type of error comes in my program what we can do? my program is atteched given below.

my_room.ino (8.43 KB)

Have you installed esp8266 correctly your IDE? Check this:

https://randomnerdtutorials.com/how-to-install-esp8266-board-arduino-ide/

Cheers, Kari

When you encounter an error you’ll see a button on the right side of the orange bar “Copy error messages” (or the icon that looks like two pieces of paper in the Arduino Web Editor). Click that button. Paste the error in a message here USING CODE TAGS (</> button on the forum toolbar). If the text exceeds the forum’s 9000 character limit, save it to a text file and post it as an attachment. If you click the “Reply” button here, you will see an “Attachments and other settings” link.