Why you make a pinMode in loop ?? and you have that in the Board A-sketch in the setup Forgot pinMode (redlight, OUTPUT);