I installed and tested this sensor with Octoprint running on a Raspberry Pi and it works great. Since the Octoprint software ignores the built in filament sensors for many printers, this sensor was a great way around that problem. Since it also detects tangles and full clogs, it really is an excellent sensor for those using Octoprint. The video attached details the wiring and installation for a setup running Octoprint on a RPi4