#include ; SoftwareSerial mySerial(PB1, PB2); void setup() { // put your setup code here, to run once: mySerial.begin(9600); pinMode (PB3, INPUT); } void loop() { // put your main code here, to run repeatedly: int a = 0; int b = 0; a = analogRead(PB3); b = a/4; mySerial.write(b); delay(20); }