A voltage tester works by sensing the amount of current capacitively coupled from the live circuit to the tester and back to the ground by holding the tool. You are the ground reference through capacitive coupling. So when the tip glows red, and the tester device beeps, that determines the voltage is present.