Thankfully my previous experience with Twitter let me reuse some of my old coding:
And using a crontab I can leave the Raspberry Pi to take a temperature reading every 30 mins and post the details to Twitter.
The full code for my temperature tweet bot can be found at https://github.com/geektechdude/twitter_sensor. Twitter API keys are needed for this project, I am currently storing my in a Python file called auth which contains values for:
consumer_key consumer_secret access_token access_token_secret