If statement and virtual pin

I’d suggest that you start by creating a new “Need help with my project” topic and provide ALL of the information that is requested when you do this, as well as your full sketch.

Pete.