Visible sector inflation and the right thermal history in light of Planck data