JavaScript file for grove line finder sensor