I just brought Garage door opener. Problem is whenever I put the sensor cable in the board the contact sensor flipping between open and close. Could it be faulty unit ?
You are not understanding. There is no Magnet. As soon as I plug the wire, ESP randomly update ON OFF ON OFF ON OFF ON OFF.... Every second. I am guessing the end of wire is faulty.
Look at below log. In one Second it has changed sensor more than 10 times. Again Magnet is not in picture. This happens when I connect the sensor cable. The sensor cable is faulty.
Please check if there is a large gap between the magnets.