Arduino Based altimeter

M4K3R_4_M4R5:
it gives me the error ''void value not ignored as it ought to be''

Your function testing() needs to return a "bool" and I would move the global "error" variable into testing() as a local variable.