function sendbutton(garbage, garbage2,conn,type,floor,elevator)
if(type==1)
    x = ['o' int2str((floor - mod(floor,10))/10) int2str(mod(floor,10)) 'z'];
else
    x = ['i' int2str(elevator) int2str((floor - mod(floor,10))/10) int2str(mod(floor,10)) 'z'];
end
fprintf(conn,'%s',x);