In the diagram below I want to replace that push-button switch Sw1 with IR receiver, I tried a lot with different combination with IR receiver and tried with transistor but I failed, so, please how
mosfet - How to create a circuit to turn off LED when switch is
arduino - Wiring an IR phototransistor - Electrical Engineering
microcontroller - Detect Infrared beam projected onto X-Y plane
Unstable IR receiver performance - Electrical Engineering Stack
infrared - Is this an LED or IR receiver? - Electrical Engineering
555 - Proximity IR Sensor Circuit using TSOP VS1838 output problem
arduino - Controlling Mosfet with ATTiny85 and IR Reflective
Drive an HX-53 IR Transmitter using an ESP32 and logic level
infrared - Unknown voltage in IR pulse sensor circuit - Electrical
arduino - IR LED with transistor - Electrical Engineering Stack
npn - How to activate a solenoid using TSOP4838 IR receiver