Repairing when open did it. Thanks.
Didn’t see if this was answered, but I had the rainbow colors problem. Found a different thread, and you have to put the battery in with the sensor open. When you close it, it should work. Putting in the battery in the closed position is intuitive, but doesn’t work.