Modified SA to take into account the buffered sensor values