Added input flushes to remove old data that might be lingering on the pipes.
Added arduino sektch.
Removed old file.