Temperature logging script