I have used several of these photo interrupters to make a pair of Basalsure devices (from Sourceforge). These devices have been in daily use for 6 months and have worked flawlessly. These IC photoelectric sensors are a little pricey, but I highly recommend them if you're looking for a solderless solution.
π Ultimate BBC Micro bit Sensor Starter Kit: Keyestudio 37-in-1 Box with Tutorial, Compatible with V1.5 & V2, Gift for Kids and Adults (Microbit Board Not Included)
11 Review
π MCIGICM 2 Channel DC 5V Relay Module: Optocoupler Low Level Trigger Expansion Board for Arduino UNO R3, DSP, ARM, PIC, AVR, STM32, Raspberry Pi
11 Review
GeeekPi Raspberry Pi Cluster Case with Cooling Fan and Heatsink for Pi 4 Model B, 3 Model B+ & 3/2 Model B
11 Review
REXQualis Comprehensive Starter Kit with Arduino MEGA 2560 & Detailed Tutorial for Arduino IDE Compatibility
11 Review
Comprehensive 500pcs Laptop Screw Kit Set for π© IBM HP Dell Lenovo Samsung Sony Toshiba Gateway Acer
12 Review
36-Pack Black Rubber PC CPU/Case Fan Screws/Rivets Set for Computer
11 Review
uxcell 3.5" HDD Screw Black 200pcs for Computer PC Case - Flat Phillips Head - 6#-32 - Hard Drive Fasteners
10 Review
Glarks 660 Pieces Phillips Assortment Motherboard
10 Review