You can test your code and circuit behavior without exposing yourself to lethal 220V/110V mains electricity.
The ZMPT101B output crosses 2.5V exactly at the AC zero-crossing point. Feed the output into a comparator with 2.5V reference. The comparator’s output pin will toggle at each zero-crossing—perfect for simulating phase-control dimmers.
Find the Proteus icon on your desktop, right-click, and select .