Pin Out for NodeMCU Using Photoelectric Sensors

Background:

I have some photoelectric detectors that I have salvaged from a corporate job site that I was working sometime back when they were disposing of material from an old building. Last I checked they valued around 1.5k in parameter sensors. FYI Price is not my concern here I hate to just throw away or discard devices that can be re-purposed. Especially if this is a device that I would not necessarily step out on a limb and purchase for my own personal use & I don’t do the eBay thing. Some of these photoelectric detectors/sensors reach up to 400 feet if I am not mistaken and would be a great parameter sensor for my 3 acres here in the country as I was able to salvage 7 sets of these.

Ref datasheet here: https://www.optexamerica.com/sites/default/files/resource-uploads/AX-70_130_200TN.pdf

Note: I do not have the original / designed controller for these devices. Nor do I want to use it.

Reason for application:

I live in the country and it would be really nice if I could use these for intrusion purposes. (Unwanted Guests).

Known Information to date:

I have determined that I don’t need the original controller to power the devices with 12vdc. When triggered these devices have a voltage output of 1.7VDC (using a 2 wire setup). When at rest they are at ‘0vdc’.

I have purchased several NodeMCU’s and other materials that I have laying around in my work center.

I just cannot see exactly, or understand, where to pin out the sensor on the NODEMCU. Both positive and negative would be needed to complete the circuit and 1.7 this is a little high for ping ‘D0’.

Research:

I am not coming to this forum empty-handed I have done a bit of research but would appreciate everyone’s input.

My thoughts:

  • Suggestion: Pin Positive (+) trigger wire to ‘D0’ it might handle the 1.7 VDC. Reason for caution It can burn it up, but not too worried as I have a few of these devices laying around.
  • Reservation: What would I do with the negative trigger wire?

Suggestion: Pin Positive (+) trigger wire to ‘A0’ using the correct attenuation it can handle 3.9vdc it can handle the 1.7 VDC from the photo-sensor.
Reservation: What Would I do with the negative trigger wire? Also on a larger note this is updated by interval if I am not mistaken, and I need it to be real-time for an alarm application.

i.e.

# Example configuration entry
sensor:
  - platform: adc
    pin: A0
    name: "Photo Sensor"
    update_interval: XXs

Questions I need your help with:

  1. Where would you put the green wires in the diagram below?
  2. What would you configuration entry syntax look like, for your proposed setup in question 1.

or

  1. If I am unable to use a NodeMCU for this do you suggest a piece of bridge hardware similar to NodeMCU that would read the 1.7 volts and provide feedback to home assistant? VIA MQTT, Zwave, or Wifi?

Ref my online circuit build for ease https://crcit.net/c/9d7e3b1f15394d7c81ef51bf434481e6 same as the dwg below if it does not come through.

The sensors are typically a relay, so normally open and when actuated, they close. The fact that you are measuring 1.7VDC means they are probably using a solid state relay you are are measuring some leakage. Best best, tie GND of sensor to NodeMCU GND. The 1.7VDC line should connect to an available input, and you can tie it to 3V3 using a 10K resistor as a pullup.