What does this for-loop do? It doesn't make much sense. Doesn't it make the sensor work even in (high enough) caves?