Arduino: added return value in the used functions