 	return tiSerial.read() & 0x7F;
 }
 
-bool atolTI( char *label, char *searchLabel, char *value, uint32_t &last, MyMessage &msg ) {
+bool compareTI( char *label, char *searchLabel, char *value, uint32_t &last, MyMessage &msg, int SENSOR_ID ) {
 	uint32_t tmp;
 
 	if ( strcmp( label, searchLabel ) != 0 )

		goto readline;
	}

	// gestion mySensor, on va caster en fonction du bon type et ensuite vérifier si la value à changée et envoyer le message à la gateway si c'est le cas
	if ( strTI( label, "ADCO", value, last.ADCO, msgADCO ) )			goto readline;
	if ( strTI( label, "OPTARIF", value, last.OPTARIF, msgOPTARIF ) )	goto readline;
	if ( atoiTI( label, "ISOUSC", value, last.ISOUSC, msgISOUSC ) )		goto readline;
	if ( atolTI( label, "BASE", value, last.BASE, msgBASE ) )			goto readline;

	if ( atolTI( label, "HCHC", value, last.HC_HC, msgHC_HC ) )			goto readline;
	if ( atolTI( label, "HCHP", value, last.HC_HP, msgHC_HP ) )			goto readline;

	if ( atolTI( label, "EJPHN", value, last.EJP_HN, msgEJP_HN ) )		goto readline;
	if ( atolTI( label, "EJPHPM", value, last.EJP_HPM, msgEJP_HPM ) )	goto readline;

	if ( atolTI( label, "BBRHCJB", value, last.BBR_HC_JB, msgBBR_HC_JB ) ) goto readline;
	if ( atolTI( label, "BBRHPJB", value, last.BBR_HP_JB, msgBBR_HP_JB ) ) goto readline;
	if ( atolTI( label, "BBRHCJW", value, last.BBR_HC_JW, msgBBR_HC_JW ) ) goto readline;
	if ( atolTI( label, "BBRHPJW", value, last.BBR_HP_JW, msgBBR_HP_JW ) ) goto readline;
	if ( atolTI( label, "BBRHCJR", value, last.BBR_HC_JR, msgBBR_HC_JR ) ) goto readline;
	if ( atolTI( label, "BBRHPJR", value, last.BBR_HP_JR, msgBBR_HP_JR ) ) goto readline;

	if ( atoiTI( label, "PEJP", value, last.PEJP, msgPEJP ) )			goto readline;
	if ( strTI( label, "PTEC", value, last.PTEC, msgPTEC ) )			goto readline;

	if ( strTI( label, "DEMAIN", value, last.DEMAIN, msgDEMAIN ) )		goto readline;

	if ( atoiTI( label, "IINST", value, last.IINST, msgIINST ) )		goto readline;
	if ( atoiTI( label, "ADPS", value, last.ADPS, msgADPS ) )			goto readline;
	if ( atoiTI( label, "IMAX", value, last.IMAX, msgIMAX ) )			goto readline;
	if ( atolTI( label, "PAPP", value, last.PAPP, msgPAPP ) )			goto readline;

	if ( charTI( label, "HHPHC", value[0], last.HHPHC, msgHHPHC ) )		goto readline;

#ifdef DEBUG_ENABLED
	Serial.print( F( "unkown LABEL=" ) );

#endif

	last = tmp;
	gw.send( msg.setSensor( SENSOR_ID ).set( last ) );

	return true;
}
bool compareTI( char *label, char *searchLabel, char &value, char &last, MyMessage &msg, int SENSOR_ID ) {
	if ( strcmp( label, searchLabel ) != 0 )
		return false;

