function [] = attivo(x,y,th)

% x = coordinata x centrale
% y = coordinata y centrale

%sensore temperatura
if th=='t'
    c = patch([x-25, x+5, x+5, x-25], [y-16, y-16, y+16, y+16], 'k');
    set(c,'facealpha',0.2, 'EdgeColor', 'k');
    c1= patch([x-25, x+5] , [y-16, y+16], 'k');
    c2= patch([ x+5, x-25], [y-16, y+16], 'k');

elseif th=='h'
    c = patch([x-15, x+15, x+15, x-15], [y-16, y-16, y+16, y+16], 'k');
	set(c,'facealpha',0.2, 'EdgeColor', 'k'); 
    c1= patch([x-15, x+15] , [y-16, y+16], 'k');
    c2= patch([ x+15, x-15], [y-16, y+16], 'k');
end

















