#include <SoftwareSerial.h>
#include <SoftModem.h>

#define rxPin 8
#define txPin 3
#define sensor1 7
#define sensor2 6

#define FSKpin 0

SoftModem modem;

SoftwareSerial mySerial(rxPin, txPin); //rx, tx

// the Tx and Rx pins are 5 and 10 on the ATtiny which in Arduino  map to pin 8 and pin 3 of arduino

// the setup routine runs once when you press reset:
void setup() {
  pinMode(sensor1, INPUT); 
  pinMode(sensor2, INPUT);
  pinMode(txPin, OUTPUT);
  pinMode(rxPin, INPUT);
  pinMode(FSKpin, OUTPUT);
  mySerial.begin(9600);
  modem.begin();
}

// the loop routine runs over and over again forever:
void loop() {  
  int a = analogRead(sensor1);
  //mySerial.println(a); // leave either the serial or the modem commented because they seem to interfere
  modem.write(a);
}
