TOF ranging sensor