Sparki has one Ultrasonic range sensor in its eye ; one is to transmit sound wave where the other receives the sound from reflection. The distance is calculated using the time difference of transmission and reception.
Lab Instruction
Quiz
Sample Codes