My question involves public health law in the State of: Maine

I read that vaccinations are mandatory in Maine. What happens if one refuses them? Jail time, fines, electric chair? What exactly is the penalty for refusal? I read that one cannot opt out of vaccines for philosophical or religious reasons. And also does this simply refer to requirements for schools or everyone in the state?