Motion sensor support

We're ready to be back on the same branch!