Sensor, wherein the sensor has the following features: - a memory which can store tasks to be performed by the sensor, wherein each task is assigned at least one subtask and at least one temporal implementation specification, in particular in the form of a point in time or a time window, for implementing the task, and - a sequence controller which is designed - to analyze tasks stored in the memory with respect to combinability and to identify combinable tasks by checking which of the tasks can be implemented at the same time, in an overlapping manner or immediately after one another in terms of time according to the temporal implementation specification and also have identical subtasks and regarding those tasks which satisfy both criteria to be combinable, and - to use combinable tasks to form modified tasks which replace the respective original tasks during implementation, wherein the modified tasks are formed from the subtasks of the original tasks in such a manner that the modified tasks each have the subtasks of all original tasks, with the exception of subtasks that occur twice or several times, and, at the end, change the sensor to a final state which corresponds to the final state defined by at least one of the original tasks. - a memory which can store tasks to be performed by the sensor, wherein each task is assigned at least one subtask and at least one temporal implementation specification, in particular in the form of a point in time or a time window, for implementing the task, and - a sequence controller which is designed - to analyze tasks stored in the memory with respect to combinability and to identify combinable tasks by checking which of the tasks can be implemented at the same time, in an overlapping manner or immediately after one another in terms of time according to the temporal implementation specification and also have identical subtasks and regarding those tasks which satisfy both criteria to be combinable, and - to use combinable tasks to form modified tasks which replace the respective original tasks during implementation, wherein the modified tasks are formed from the subtasks of the original tasks in such a manner that the modified tasks each have the subtasks of all original tasks, with the exception of subtasks that occur twice or several times, and, at the end, change the sensor to a final state which corresponds to the final state defined by at least one of the original tasks. - to analyze tasks stored in the memory with respect to combinability and to identify combinable tasks by checking which of the tasks can be implemented at the same time, in an overlapping manner or immediately after one another in terms of time according to the temporal implementation specification and also have identical subtasks and regarding those tasks which satisfy both criteria to be combinable, and - to use combinable tasks to form modified tasks which replace the respective original tasks during implementation, wherein the modified tasks are formed from the subtasks of the original tasks in such a manner that the modified tasks each have the subtasks of all original tasks, with the exception of subtasks that occur twice or several times, and, at the end, change the sensor to a final state which corresponds to the final state defined by at least one of the original tasks.