SD Module - Writing timestamp to txt file & data from sensors

  else if (count = 5){

Assigning the value 5 to count in an if statement is rarely the right thing to do.

Showing the temperature every 2 seconds, and logging it every 10 minutes, requires a count of more than 5.