Reverse engineering nLight occupancy sensors