#include const int lpin = A3; const int magpin = A2; SoftwareSerial ss(1,2); void setup() { // put your setup code here, to run once: ss.begin(9600); } void loop() { // put your main code here, to run repeatedly: int val = analogRead(lpin); int val2 = analogRead(magpin); ss.print(val2); ss.print(','); ss.print(val); ss.print('\n'); delay(500); }