3D sensor for mobile applications