Look at the wires coming into and going out of the devices in the old box. Identify LINE and ... tape the edges of your level ...