Hue motion sensor to smart things

Hello all, I’m trying to get my hue motion sensor to work with my smart things. I have done the following steps :-

Log into my smart things account from my laptop

My Device Handlers

Create new device handler

From code

Then I copied and past the code word for word from the following page

I created, saved then published .

I then went into my smart things app and scanned for a new device to add (ensuring my sensor is in pairing mode)

My smart things app simply cannot find the sensor…

This is driving me nuts and I can’t figure out what i’m doing wrong…can anyone please help