How to change the internal logic of an IR sensor module?

See if this works like you want:

void setup() {
pinMode(8, INPUT);
Serial.begin(9600);
}
void loop() {
Serial.println(! digitalRead(8));
delay(1000);
}