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.
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.
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.
Spanish police reported the migrants were transferred to detention centers within Melilla.