With this circuit you can make an AND connection from two signals without any microcontroller. In this example the two switches simulate the different input signals. The output (in this example the voltmeter) is low, if both inputs are high (switches closed). If one of the input signals is low (switch open), the output is high.