This illustrates the working with LDR
I will explain how templates work and how you may use them in your code.
Send commands and characters to an LCD over Bluetooth from a graphical interface
Using 3 pushbuttons two to give different frequencies to the BUZZER while the third one to stop the BUZZER