A library for detecting the presence of nearby objects using the Sharp GP2Y0A21YK proximity sensor