A cargo detector for use in a trailer that includes an ultrasonic transducer for covering the entire interior area of the trailer. In particular, the cargo detector has three modes including short range, long range, and proximity range, and can detect cargoes located flush against a front or rear wall of the trailer.