#include "Arduino.h"

float scmP_Func=0;
uint16_t pressure_scaled=0;
int smcP_Out1=0;
int smcP_Out2=0;

float pressure=0;
  
void setup() {
  Serial.begin(9600);  
}

void DataAcquisition(){
  scmP_Func=analogRead(A0);
  pressure_scaled=(uint16_t)(scmP_Func);
  //smcP_Out1=analogRead(A1);
  //smcP_Out1=analogRead(A2);
}

void loop() {
  DataAcquisition();
  Serial.write((uint8_t*)&pressure_scaled, sizeof(pressure_scaled));
  //Serial.println(scmP_Func);
  //Serial.println(smcP_Out1);
  //Serial.println(smcP_Out2);

  
  //Serial.println(val);
  delay(100);  // delay in between reads for stability

}
