A person is guilty of the crime of endangerment with a controlled substance if the person knowingly or intentionally permits a dependent child or dependent adult to be exposed to, ingest, inhale, or have contact with methamphetamine or ephedrine, pseudoephedrine, or anhydrous ammonia, including their salts, isomers, and salts of isomers, that are being used in the manufacture of methamphetamine, including its salts, isomers, and salts of isomers. Endangerment with a controlled substance is a class B felony.