#include <dht.h>
#define DHT22_PIN PB5
#define CLOCK PB0
#define LATCH PB2
#define DATA PB1

int NUM[10]={3,159,37,13,153,73,65,27,1,9,};
double temp_adc_value; 
double temp; 

void setup()
{
pinMode(DHT22_PIN, INPUT);
pinMode(CLOCK, OUTPUT);
	pinMode(LATCH, OUTPUT);
	pinMode(DATA, OUTPUT);	}

void loop(){
dht DHT;
  DHT.read22(DHT22_PIN);
  int temperature = DHT.temperature;
  int temperatureDigit1 = temperature / 10;
  int temperatureDigit2 = temperature % 10;

	digitalWrite(LATCH, LOW);
  shiftOut(DATA, CLOCK, LSBFIRST, NUM[temperatureDigit2]);
  shiftOut(DATA, CLOCK, LSBFIRST, NUM[temperatureDigit1]);
	digitalWrite(LATCH, HIGH);
  delay(3000);


  int humidity = DHT.humidity;
  int humidityDigit1 = humidity / 10;
  int humidityDigit2 = humidity % 10;

	digitalWrite(LATCH, LOW);
  shiftOut(DATA, CLOCK, LSBFIRST, NUM[humidityDigit2]);
  shiftOut(DATA, CLOCK, LSBFIRST, NUM[humidityDigit1]);
	digitalWrite(LATCH, HIGH);
delay(3000);}



ATTINY8520PU
74HC595
74HC595