I had a Lutron Maestro MS-OPS2 occupancy sensor wired in a small handy box and it worked fine. Here is a photo of how it was wired then:
Since the box was too small and I wanted to put a finished steel cover plate over it, I replaced it with a bigger box. The problem is that the sensor won't function at all after I rewired everything. I have both black wires going to the black wires on it, and the green/bare together going to the ground. Here is a photo with the old switch back in place, which operates the lights without a problem:
Here is a photo of the occupancy sensor I am using. Any help here as to what is wrong would be great. Thanks!