Hello, You can use this solution. I use this with attiny84 and attiny84A, for temperature sensor and opening sensor. http://domotique-diy.overblog.com/