A simple ultrasonic Indoor/Outdoor detector for mobile devices