A 3-year-old boy was transported to the hospital Tuesday afternoon after being inside a hot vehicle for 40 minutes, the Johnston County Sheriff’s Office said.