#include SoftwareSerial BT(0,1); // 0 = RX, 1 = TX int sensorPin = A1; // select the input pin for the analog voltage float sensorValue = 0; // variable to store the value coming from the analog input void setup() { // put your setup code here, to run once: BT.begin(38400); //Serial.begin(9600); // don't use BT-transfer and Serial-transfer to the computer at the same time!!! } void loop() { sensorValue = analogRead(sensorPin); sensorValue = sensorValue * 5.0 / 1023; Serial.println(sensorValue); BT.print(sensorValue); BT.print(";"); // don't forget the semicolon at the end of the data transfer !!! delay(100); }