and the SIG is going to an analog pin on the arduino
if (SENSOR == LOW) {
digitalWrite(TRANSISTOR, LOW);
} else {
digitalWrite(TRANSISTOR, HIGH);
}
Is is unlikely that an analogue pin will consistently go LOW (== 0).
Try either a digital pin, or invent some threshold.