Updates to PIR driver to use the refactored modules.