Thank you for explaining it the way you have. I get a sense of that kind of thing, with various corrections I sometimes have to make, when I edit pictures in Photoshop. There are various tools that make it a whole lot easier, within the software.
These motion sensors are not connected to and have nothing to do with the cameras. The cameras in use in the apartments don’t have motion sensors. They have photo-electric cells that determine how much light is in the room, and adjust to either night or daylight vision.
These motion detectors (there looks to be another one lower on the left wall) are for, I believe, nightlights, which are usually mounted low to the floor, like the one on the left wall. The ones used the most in the US are simply plugged into the wall socket, like these.
As you can see, they come in all shapes, sizes and functionality, and they all plug into the wall socket, which makes them super convenient.
Whatever this sensor is for, I agree it could get in the way and be damaged. Usually, sensors for nightlights are built-in to the nightlight and just plug into the wall socket, as illustrated above.
It’s the lens that causes the distortion, and no matter how expensive your lens, all have some distortion. The good news is it’s usually fixable in post processing, as David mentioned above.
Part of the paragraph above came from an article I read on the subject of distortion, but I was a photographer for decades and can verify this is true.