//Comunication test for ATtiny44 (ATtiny441/841) with sound sensor value printing. //Minor changes made by David Arias, 2018. Based on public example form Arduino website. #include // Definitions #define rxPin 2 //Pin 13 for ATiny44. Receiving pin #define txPin 1 //Pin 12 for ATiny44. Receiving pin #define snd 0 //Pin 13 for ATtiny44. Sensor input SoftwareSerial mySerial(rxPin, txPin); // the setup routine runs once when you press reset: void setup() { mySerial.begin(9600); pinMode(snd, INPUT); } // the loop routine runs over and over asensorpingain forever: void loop() { int val; val = analogRead(snd); mySerial.print("Sensor value: "); mySerial.println(val); delay(500); }