Exactly.
Of course the IR sensor has to be connected not only to physical header pin 22 (representing GPIO 25), but to GND and Power (3.3V), too.
EDIT: Corrected physical pin number of GPIO 25 (it’s pin 22, not 12)!
Exactly.
Of course the IR sensor has to be connected not only to physical header pin 22 (representing GPIO 25), but to GND and Power (3.3V), too.
EDIT: Corrected physical pin number of GPIO 25 (it’s pin 22, not 12)!