bed project: Now works with arduino