Arduino Pin won't go LOW
After you drive the pin low, you immediately go to the beginning of the loop and set the pin high (if you have an oscilloscope, you might see a very short downward pulse).
So, add another delay after digitalWrite(devicePin, LOW).