a method of and system for automatically adjusting airflow and sensors for use therewith are disclosed . a sensor assembly includes a first face on an opposite side of the sensor assembly relative to a second face . the assembly includes an electrical plug on the first face and an electrical outlet on the second face . the electrical outlet is of a same type that is complimentary to the electrical plug on the first face . the assembly includes a sensor for sensing a value of an environmental variable in a space and a sensor communication system for transmitting and receiving information . a sensor system includes a plurality of sensor assemblies disposed in a building . each sensor assembly includes a sensor for sensing a value of an environmental variable of the space within which the sensor is placed . the system determines gradient values for the sensed environmental variable .