Object Detection for Agricultural and Construction Environments Using an Ultrasonic Sensor