magnetic sensor for bootloader activation