Microwave sensors based on resonant elements