این ساده ترین کدیه که میشه برای نوشت :
کد:#include <SoftwareSerial.h> SoftwareSerial mySerial(10, 11); // RX, TX void setup() { // Open serial communications and wait for port to open: Serial.begin(57600); mySerial.begin(4800); } void loop() { // run over and over int sensorData=analogRead(A0); if( sensorData >100); mySerial.write("ATD09xxxxxxxxx;\r"); }