implemented the sense-decide-act loop for ftp bee