Update Code.gs

[*] Fix error when using  virtual sensors