Motion sensor not updating

Code fences make things clearer.
How to use code fences - Tutorials & Examples - openHAB Community