I have deisgned a PCB which will accept sensor voltage ranging from 5-24VDC, and attempting to monitor the status of a Capacitive Proximity sensor (24V o/p) via one of the Digital Inputs of microcontroller. To ensure isolation between the input and the controller side, I've employed an opto coupler. I've attached the schematic I've been utilizing. Despite this setup, the LED connected to the digital pin isn't illuminating. Upon measuring the voltage across the digital pin during a logic HIGH state, I observed a drop of 1.8V. Could someone kindly provide insight into why the LED fails to illuminate?
The LED i'm using in this pcb is, in which one LED indicates input status, the other will indicate digital output generated by the controller
https://www.digikey.in/en/products/detail/kingbright/WP934CA-2GD-90/3084288
Additionally, I require some information: Can I interface an Inductive Proximity sensor alongside the Capacitive Proximity sensor, as depicted in the attached schematic?

so after searching google finally arrived to a circuit, but want to make sure, this time it will work before making PCB. So can one tell me is this right circuit to proceed
updated circuit:

The LED i'm using in this pcb is, in which one LED indicates input status, the other will indicate digital output generated by the controller
https://www.digikey.in/en/products/detail/kingbright/WP934CA-2GD-90/3084288
Additionally, I require some information: Can I interface an Inductive Proximity sensor alongside the Capacitive Proximity sensor, as depicted in the attached schematic?

so after searching google finally arrived to a circuit, but want to make sure, this time it will work before making PCB. So can one tell me is this right circuit to proceed
updated circuit:

