Groovy device type handlers Will all stop working soon once Samsung discontinues the free groovy cloud. So you’re better off looking for an edge driver (part of the new platform) now.
Here’s one. When it was first released, no edge driver supported illuminance, but I believe it does now. You can ask in that thread, anyway.
[Edge Driver] Hue Motion Sensor (No Hue Bridge)
And if you don’t know what edge is, here’s the community FAQ:
FAQ: I have no idea what Edge is. Is that a new developer tool? (2022)