Reverted airmar code, added timeout checker in serial