||We are looking at an apartment in a building with a motion detector outside, which turns on a light when you walk by at night. That is the only way in to the building. Is this a shabbat problem? Please mention the relevant hilchot shabbat issues. We want to understand if we need to avoid this building, assuming they will not agree to disable the motion detector on Shabbat.