A nontransitory computer-readable medium comprising a computer program, comprising instructions which, when executed on at least one processor of a wireless device, causes the at least one processor to carry out a method of the wireless device for performing one or more operations based on available energy, wherein the wireless device is configured to operate in a wireless communications network, and wherein the method comprises:
- based on an amount of energy available for operation and based on control information and prior to performing a sensing operation using a sensing operation configuration and prior to performing a communicating operation using a communicating operation configuration, determining an allocation of the amount of available energy between at least a first energy part and a second energy part, wherein the first energy part of the amount of available energy is to be used in the sensing operation using the sensing operation configuration and the second energy part of the amount of available energy is to be used in the communicating operation using the communicating operation configuration;
- and
- performing based on the determined allocation, one or more operations out of:
- the sensing operation using the first energy part and the sensing operation configuration, and the communicating operation using the second energy part and the communicating operation configuration,
- wherein the control information comprises information relating to a priority relation between the sensing operation and the communicating operation, and
- wherein the sensing configuration comprises one or more of:
- an amount of time for the sensing operation;
- information relating to one or more sensors to be enabled when performing the sensing operation, and information relating to the accuracy of resolution and sampling frequency of the sensing operation.