The technology provides for a wireless charger. The wireless charger may have a transmitter antenna array, one or more detectors, one or more sensors, and one or more processors. For instance, the processors may determine, based on signals from the detectors, that one or more receiver antennas are located within a near-field range of the transmitter antenna array. The processors may then control the transmitter antenna array to focus electromagnetic waves on a first receiver antenna of the one or more receiver antennas, and control the transmitter antenna array to transmit power to the first receiver antenna. In some instances, the processors may further determine, based on signals from the sensors, that a person is located within the near-field range of the transmitter antenna array. Based on this determination, the processors may control the transmitter antenna array to stop transmitting power to the first receiver antenna.