3D alarm sensor