Basics of AND gate and its application in car wiper control