A condition can exist where pin D4 is allocated a value of 0 The workaround is to define and use pin numbers in the PIN_Dx format