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

What makes you sure of the default output state of such modules?
You can invert the signal in code.

I wonder what's the purpose of that IR receiver. Remote control uses a carrier frequency of about 40kHz, a white surface should not result in any output, and it does not have an indicator LED. Do you have an IR light barrier module? Or a motion sensor? Any link to the data sheet were helpful.

Please present code in Code Tags </>.