Hello.
I would like to make a circuit to scale down voltage from 24v to 5v dc , I need to read the High/low status of a industrial sensor that uses 24v logic,
I need to feed the output of sensor to microcontroller input pin, two resistor divider circuit can be use with an input pin

I heard about opt-coupler can be used,
what are the other way to read the High/low status of a industrial sensor that uses 24v logic ?
thanks for help.
I would like to make a circuit to scale down voltage from 24v to 5v dc , I need to read the High/low status of a industrial sensor that uses 24v logic,
I need to feed the output of sensor to microcontroller input pin, two resistor divider circuit can be use with an input pin

I heard about opt-coupler can be used,
what are the other way to read the High/low status of a industrial sensor that uses 24v logic ?
thanks for help.

