Hello, I recently started working on doing the third project - Controlling LED. Initially, after I set up the connections and wrote the code for the project, the LED worked as I expected (both HTML and JS). Now I moved forward to construct a buzzer and for that, I replaced the LED with the buzzer and it also worked correctly (both on and off). I ran the buzzer for 4-5 minutes and after that, I attempted to turn it off by clicking the button ‘Off’ but it didn’t work. I tried clicking the off multiple times but it didn’t help me. I connected the LED now (I just replaced it) and once I connected it, it started to glow and I wasn’t able to turn it off too. Could someone please help me with this? I had not changed the code which I had written for LED when connecting the buzzer to the module.
Note: After all this happened, I turned off my module and made the necessary connections for the LDR, and tested whether it works. Luckily, it worked. The LDR was working perfectly. The buzzer and LED are not working suddenly.