Two teenage migrants from Africa were found by Spanish authorities crammed inside the dashboard and under the back seat of a Hyundai station wagon attempting to cross from Morocco.

The Spanish civil guard said it foiled the smuggling scheme Thursday when it stopped the vehicle at the Beni-Enzar crossing in the Spanish enclave of Melilla in northern Africa.

In a press released obtained by Fox News, authorities said a routine security check alerted officials of physical abnormalities in the vehicle.

2 OF EUROPE'S MOST WANTED CRIMINALS ARRESTED IN WEST AFRICA AFTER 20 YEARS ON THE LAM

Authorities used a “heartbeat detection machine” to scan for any heartbeats inside the vehicle, the press release said.

Police were forced to cut parts of the vehicle due to how tightly the migrants were crammed inside.

The two teenagers were determined to be from the Sub-Saharan African nation of Guinea.

CATALAN PROTESTERS STORM SPAIN HIGHWAY, SNARLING TRAFFIC AND BURNING BARRICADES

The pair were found to have symptoms of sweating, numbness, and difficulty walking due to the exposure of toxic gasses expelled from the car and the smallness in space in which they were rescued.

Authorities determined their conditions were stable after administering first aid and neither had to be transferred for additional medical care.

The driver, a 30-year-old Moroccan, was arrested on suspicion of human trafficking.

CLICK HERE TO GET THE FOX NEWS APP

Spanish police reported the migrants were transferred to detention centers within Melilla.