Connecting push button with led

I want to connect the push button switch given in the kit with the led .I don’t know where to connect the two pins of push button. So that if anyone switch on /off the light using the switch it immediately send the message that “Someone turned on the light”. Can you please tell me the hardware connection and its code ? Please help!

To operate push button you have to manually push the button in any circuit you design. There is no such code for pushing the switch button.

just connect shorter end of led to switch and then other end of switch to gnd it works

But shorter leg led is connected to the ground in the controlling led hardware connection

to use push button just use it in between the LED +ve terminal and the supply voltage terminal.