Crane crash avoidance sensor is used as an early warning sensor for preventing collision of overhead cranes running of the same rails. These are installed face-to-face on adjacent overhead cranes running on the same rails. When one crane approaches the detection area of an adjacent crane, its sensor detects the microwaves transmitted by the sensor mounted on the opposite crane and an alarm is generated, thus preventing collision.