added sensor function