Could you please help me with the following issue. It is a basic problem but I need help anyway. Please refer to the picture below. .
In fact, I would like to use a proximity sensor in order to action a solenoid (a push pull button) when an obstacle is close to the sensor there is a 5V voltage between A0 and GND which I would like to input it to the selenoid to action it. However, when I try this circuit, the solenoid is not actioned. When replacing the solenoid with a LED, the voltage is not equal to 5V (it is equal to 2.4V).
Could anyone help to overcome this simplistic issue please?