Basal temperature??

Can some explain how to check basal temp and how is this helpful to trying to get pregnant