This video demonstrates the example of machine to machine communication using Nodemcu. Here one Nodemcu is acting as a server and the other one is connected to it is acting as a client, here i connected a LED to the D2 pin of the server and also a DOOR SENSOR to the D2 pin of the client so whenever the door is opened the LED on the server glow and the server serially prints a message "Door opened" and when the door is closed the LED turns off and the server prints a message "Door closed".