The existence of these sensors isn't entirely new when you compare the Switch 2's Joy-Con with the original. In fact, the original Nintendo Switch has an IR sensor of its own, but only on the right ...
I recently had to build an infrared close proximity sensor that could tell if something was dropped in a parcel delivery drop box. After some searching, I ended up using a microcontroller and a piece ...