Understanding IR Sensor Module
If we number the pins looking at your 1st pic with the top row being 1 2 3 and the bottom row being 4 5 6, then the pinout is probably:
1 - Gnd
2 - nc
3 - nc
4 - power
5 - output
6 - nc
I've drawn these conclusions because:
Pin 1 is connected to pin 1 on the 555 and pin 4 on the LM358.
Pin 4 is connected to pin 8 on the 555 and (maybe) pin 8 on the LM358.
Pin 5 is connected to pin 7 on the LM358.