PDM_physicalComputing_Arduino/PDMSerial.cpp
void PDMSerial::transmitSensor(String name, int value) {
  if (name == "end") {
      Serial.write(";\n");
      _startingTransmit = true;
  } else {
          // Only put a comma on after the first transmitted data.
      if(_startingTransmit) {
        _startingTransmit = false;
      } else {
        Serial.write(",");
      }
      
        // Prep the data 
    String xmitData = name + ":" + String(value);
      // Transmission to the computer
    Serial.write(xmitData.c_str());
  }
}
// **********************************************
// ********* LSU DDEM Data Transmission ********* 
// **********************************************
//
// Transmit as many sensors as you like then send end before looping.
// transmitSensor(string name, int/float value);
// transmitSensor("a0", sensorValue);
// transmitSensor("float0", sensorFloatValue);
// transmitSensor("b7", buttonState);
// transmitSensor("end");
LSU DDEM Data Transmission
Transmit as many sensors as you like then send end before looping.
LSU DDEM Data Transmission Transmit as many sensors as you like then send end before looping .
void PDMSerial::transmitSensor(String name, int value) {
  if (name == "end") {
      Serial.write(";\n");
      _startingTransmit = true;
  } else {
      if(_startingTransmit) {
        _startingTransmit = false;
      } else {
        Serial.write(",");
      }
    String xmitData = name + ":" + String(value);
    Serial.write(xmitData.c_str());
  }
}
void PDMSerial :: transmitSensor ( String name , int value ) { if ( name == " " ) { Serial . write ( " \n " ) ; _startingTransmit = true ; } else { if ( _startingTransmit ) { _startingTransmit = false ; } else { Serial . write ( " " ) ; } String xmitData = name + " " + String ( value ) ; Serial . write ( xmitData . c_str ( ) ) ; } }
LSU DDEM Data Transmission 
Transmit as many sensors as you like then send end before looping.
LSU DDEM Data Transmission Transmit as many sensors as you like then send end before looping .
// Only put a comma on after the first transmitted data. // Prep the data  // Transmission to the computer