title: How can I use open hardware monitor source code in c# ? I tried anything doesn't work
body: <p>I have this code in Form1:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Windows.Forms;
  using OpenHardwareMonitor.Hardware.HDD;
  using OpenHardwareMonitor;
  
  namespace OpenHardwareMonitor
  {
      public partial class Form1 : Form
      {
  
          OpenHardwareMonitor.Hardware.SensorValue sv;
          OpenHardwareMonitor.Hardware.ISensor ii;
          public Form1()
          {
              InitializeComponent();
  
              string y = ii.Name;
              sv = new Hardware.SensorValue();
              DateTime dt = sv.Time;
              float t = sv.Value;
  
          }
  
          private void Form1_Load(object sender, EventArgs e)
          {
  
          }
      }
  }
  </code></pre>
  
  <p><code>ii</code> variable is null I don't know how to make an instance for it.</p>
  
  <p>The other two variables in the constructor return 0 nothing. If I'm not using the <code>ii</code> variable the other two don't throw an error but don't return any values.</p>
  
  <p>I'm using the openhardwaremonitor dll from <a href="http://code.google.com/p/open-hardware-monitor/downloads/detail?name=openhardwaremonitor-v0.4.0-beta.zip&amp;can=2&amp;q=" rel="nofollow">http://code.google.com/p/open-hardware-monitor/downloads/detail?name=openhardwaremonitor-v0.4.0-beta.zip&amp;can=2&amp;q=</a></p>
  
  <p>The c# dll is coming with the program it self.</p>
  
  <p>So I added as reference the dll but I don't know how to make the code.</p>
  
  <p>Could someone build for me just an example of the code according to my code here ?
  I tried to look in the openhwardwaremonitor site and source code there and didn't understand how to use it.</p>
  
  <p>What else can I do ?</p>
  
  <p>Thanks.</p>