The best way to avoid getting sick is by washing hands frequently when preparing food as well as avoiding cross-contamination of food preparation areas by washing cutting boards, counters and utensils with hot, soapy water.
Properly washing hands after using the bathroom and after coming into contact with animals or being in their environments -- anywhere there may be traces of feces, where the bacteria could be lurking -- also helps.
Cooking meats thoroughly to at least 160°F or 70?C kills the bacteria and prevents infection as well. Using a meat thermometer will most accurately help you determine that the food is thoroughly cooked.

Comments