="w-100 btn btn-lg btn-danger">Delete</button>
                </div>
            </div>
        </div>
    </div>

    <script>
        window.addEventListener("DOMContentLoaded", function () {
            var set_button = document.getElementById("sensor_set_button{{sensor.id}}")
            var delete_button = document.getElementById("sensor_delete_button{{sensor.id}}")
            var is_random_control = document.getElementById("random{{sensor.id}}")
            var random_min_control = document.getEleme