Temperature compensated time synchronisation in wireless sensor networks