void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
pinMode(22, OUTPUT);
analogReadResolution(10);
}
void loop() {
// put your main code here, to run repeatedly:
int x = analogRead(26);
analogWrite(22,x);
Serial.println(x);
delay(500);
}