Spatial sensor