design and construction of a rain detector using two transistors