sensing means for gap between source and detector