implemented the sense-decide-act loop for the ftp bee