Hi I'm trying to write a small piece of code that that reads the input from an analogue pin every second. I just don't know what the code is to get the binary input string. Any help would be great, my code is below:
Code:int sensorValue = 0; void setup() { Serial.begin(9600); ADMUX = B01000000; ADCSRB = B00000000; } void loop() { sensorValue = ADCSRB; //Read Analogue Input ???? Serial.print("Sensor = " ); Serial.print(sensorValue); delay(1000); }