Local residents spotted the baby and immediately alerted volunteers, who went to the area to rescue the baby.
The newborn was no more than 24 hours old, according to medical staff at Lanna Hospital.
The hospital said the baby was in stable condition and would be transferred to a state-run orphanage.
Police also said they would check recordings from security cameras in the area to find who abandoned the child, which violated the law.