A former Farmington kindergarten teacher has pleaded guilty in federal court to possessing and sharing child porn, sending the material through an online messaging app.