Filament Runout sensor problem

I set up the filament runout sensor with octoprint.
otopi version used is 0.17.0 and octoprint version is 1.4 on raspberry pi 3B.

I connected sensor signal output to pin 18(GPIO24), gnd to pin20 and VCC to 3.3V and I installed "Filament Sensor Reloaded" and following settings made in Octoprint GUI

Pin : 24
Switch Type: Normally Open
Board Pin Mode: BCM

Also Included gCode scripts whenever printer is paused and resumed.

Before installation of the "Filament Sensor Reloaded" Plugin the printer works fine and everything is ok.
After installing this plugin i preheated the bed and Nozzle with specific temperature values for ABS. After uploading Gcode file and If I click on Print Option ,the Nozzle and Bed temperature instantly drops to zero and no print takes place.

Again If I uninstall Filament Sensor Reloaded everything works fine.

What could be the reason for printer behavior? How this plugin is affecting in Temperature values when print option is pressed?Please help me out

Hello @lavanya_r!

Sadly you deleted the template when you opened this thread, so you missed an important section: LOGS.

octoprint (1).log (144.5 KB)

this is the log file

Multiple times this occurs:

2020-08-18 11:17:32,906 - octoprint.plugins.filamentreload - INFO - Printing aborted: no filament detected!

You may check the wiring of the sensor and/or the settings of the plugin.