The compartment was connected to the air-conditioner system for better ventilation.
One of the migrants told the authorities that he paid Bt8,000 to a labour middleman for a job in Bangkok and surrounding provinces.
The driver of the bus, Thanathip Rattakajang has been charged with smuggling illegal migrants.
The nine males and two females were sent to Mae Sot Police Station for further questioning.