reed switch inside the casing- run a magnet round the casing- usually the top- as soon as inside light has gone out- youve found it