Driver Code for Everspring SP103

Hi

Wondering if anyone can help please. I'm trying to setup an Everspring SP103 outdoor motion sensor but none of the existing drivers are working. I remember on my old Smartthings setup I used a custom device handler for it (better-zwave-motion.groovy), as by default it was detected as a door/contact sensor with states open/closed instead of active/inactive motion.

I've tried to "convert" this code using the "app-and-driver-porting-to-hubitat" post as a guide but it's throwing a lot of errors and I'm stuck.

Anyone else with one of these devices or any help/suggestions please?

Thanks
BM