Upload this code to your virtual Arduino in Proteus.
The Evolution of Virtual Prototyping: 4-Channel Relay Module Libraries for Proteus 4 channel relay module library for proteus new