When i run this code on the arduino i get the following error , "invalid conversion from int to char". What do i need to do to get rid of this error?
int TP_init(){
delay(10);
int measurement=pulseIn (EP, HIGH); //wait for the pin to get HIGH and returns measurement
return (measurement);
writeToFile(int(measurement));
closeFile();