To calibrate this reading, connect the +24v pin to a power source and use a multimeter to measure the voltage. For this example, lets call it 23.5v. Now measure the voltage on the other side of the potential divider, which is the 24v test point on the PCB, and Pin A0 on the Arduino. For this example let's call it 3.6v. Now you need to calculate the ratio between them: