I made a Home automation project and am able to control all my lights and everything with no errors at all. But major problem occurs after few hours. port stops responding. When I try to open port with IDE it says port busy and everything stops working. Then i have to remove Arduino USB from laptop and replug it and start everything again. Tried using Processing to provide serial input to Arduino. Also tried Batch files with "Echo "A" > com4: ". Both had the same problem. I think there is some problem with my Arduino code.
web.ino (18.4 KB)