#include // a lot of help from chatgpt // Define Software Serial RX and TX pins const int RX_PIN = 4; // Not actively used in this case const int TX_PIN = 5; // Transmit pin for output // Create a SoftwareSerial object SoftwareSerial mySerial(RX_PIN, TX_PIN); const uint8_t analogPins[] = {0, 1, 2, 3, 6, 7, 8, 9, 10}; const uint8_t numPins = sizeof(analogPins) / sizeof(analogPins[0]); void setup() { // Initialize serial communication for debugging mySerial.begin(9600); delay(1000); // i don't know, wait a bit. mySerial.println("DEBUG :: ADC serial initialized"); // Configure the data pins as input for (int i = 0; i < numPins; i++) { pinMode(analogPins[i], INPUT); } } void loop() { // Loop through each pin and read the analog value for (int i = 0; i < numPins; i++) { int state = analogRead(analogPins[i]); mySerial.print(analogPins[i]); mySerial.print(": "); mySerial.print(state); if (i < numPins - 1) { mySerial.print(", "); } } mySerial.println(); delay(10); }