I found a datasheet. **broken link removed** 24 VDC is a common industrial control panel power. You have 500 mA sik capability. The output is an NPN transistor, so it sinks current to ground,
You hve the NO, NC to sort out NO usually means without the target reflector. With the target or nothing in the baem, it might be closed.
No guarantees at all. You need a load, a pull up or a DVM with a diode function to test.
With the diode function, power the sensor and take the output to ground using the diode function of the DVM with the proper polarity. Figure out what it does.
https://recom-power.com/pdf/Powerline_AC-DC/RAC03-ER_277.pdf makes a low power 24 Vdc (circular disc) power supply that can go in junction boxes,
You can buy delay on make or delay on break modules which are re-trigerable or non-retrigerable or multifunction modules.
Something like this:
https://www.automation24.com/multif...reviewPriceListId=1&refID=adwords_shopping_US
But your still left with getting the NPN output to contact closure. That can easily be done with a relay. Let's leave it at that for now. An OPTOMOS relay (an IC) and a resistor can also be used.
So, you have control type relays and finally, the final output or the light your driving.
The timer is not easy to understand.
I have no idea where
the following Figure show the available wires for me (+12v,-12v,S,-12v)
that comes from.
This ALMOST sounds like a bathroom ventilator project. I had a successful one working for a long time, but it needs to be replaced. The controls are located in an attic space.
I used a delay on break timer, so that 20 minutes after the ventilator switch was turned off, the fan would turn off. If I wanted to automate that more, I could sense shower water flow and do it more automagically.
12V could limit your options.