However, before soldering components and dealing with lethal mains voltage, what if you could simulate the entire setup virtually? This is where comes in. But there’s a catch: Proteus does not include the ZMPT101B in its default library.

/* Conceptual Code for ZMPT101B in Proteus The sensor output is an AC wave superimposed on a DC bias (VCC/2). */